import axios from 'axios';

/**
 * 获取产品列表
 */
export function getDeviceList(data: {
    current: number;
    size: number;
    deviceName: string;
    deviceNo: string;
    status: 0 | 1;
}) {
    return axios.post('/api/v1/device/page', data);
}
export function findByStationId(data: { stationId: string }) {
    return axios.post('/api/v1/device/findByStationId', data);
}
/**
 * 编辑设备
 */
export function editDevice(data: any) {
    return axios.post('/api/v1/device/edit', data);
}
/**
 * 新增设备
 */
export function addDevice(data: any) {
    return axios.post('/api/v1/device/add', data);
}
/**
 * 删除设备
 */
export function deleteDevice(data: any) {
    return axios.post('/api/v1/device/delete', data);
}
/**
 * 获取设备详情
 */
export function getDeviceInfo(data: any) {
    return axios.post('/api/v1/device/detail', data);
}
/**
 * 获取站点列表
 */
export function getStationList(data: any) {
    return axios.post('/api/v1/station/page', data);
}
/**
 * 设备规格编辑
 */
export function editDeviceSpec(data: any) {
    return axios.post('/api/v1/deviceSpecs/edit', data);
}
/**
 * 设备规格新增
 */
export function addDeviceSpec(data: any) {
    return axios.post('/api/v1/deviceSpecs/add', data);
}
/**
 * 设备规格删除
 */
export function deleteDeviceSpec(data: any) {
    return axios.post('/api/v1/deviceSpecs/delete', data);
}
/**
 * 设备规格列表
 */
export function getDeviceSpecList(data: any) {
    return axios.post('/api/v1/deviceSpecs/list', data);
}

/**
 * 设备运行状况
 */
export function getDeviceRunStatustList(data: any) {
    return axios.post('/api/v1/device/property/list', data);
}
/**
 * 设备告警
 */
export function getDeviceAlertList(data: any) {
    return axios.post('/api/v1/device/alertLog/list', data);
}

export function getDevicePropertyHisList(data: any) {
    return axios.post('/api/v1/device/property/history', data);
}
